package com.gm.model.po;

import java.util.List;

/**
 * Created by taojie on 17-6-6.
 * 系统权限
 */
public class Right {

    //权限ID
    private int id;
    //权限名
    private String name;
    //路由
    private String url;
    //权限权重
    private int weight;
    //图标
    private String icon;
    //父节点
    private int parentNode;
    //权限状态
    private int status;
    //创建时间
    private long createTime;
    //更新时间
    private long updateTime;



    private List<Right> sonRight;

    public Right() {
    }

    public Right(int id, String name, String url, int weight, String icon, int parentNode, int status, long createTime, long updateTime, List<Right> sonRight) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.weight = weight;
        this.icon = icon;
        this.parentNode = parentNode;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.sonRight = sonRight;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public int getParentNode() {
        return parentNode;
    }

    public void setParentNode(int parentNode) {
        this.parentNode = parentNode;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public List<Right> getSonRight() {
        return sonRight;
    }

    public void setSonRight(List<Right> sonRight) {
        this.sonRight = sonRight;
    }
}
